﻿using GlennQuigmire.API.Application.Commands;
using GlennQuigmire.API.Application.GDtos;
using IMES.Common.Dtos;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace GlennQuigmire.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class TransmitReceivesController : ControllerBase
    {



        private readonly IMediator mediator;
        public TransmitReceivesController(IMediator mediator)
        {
            this.mediator = mediator;
        }


        /// <summary>
        /// 库存收发明细查询
        /// </summary>
        /// <param name="cmd">查询库存收发明细请求参数</param>
        /// <returns>返回库存收发明细查询结果</returns>
        [HttpPost]
        public Task<Result> Handle1(TransmitReceiveSearchCommand cmd)
        {
           return mediator.Send(cmd);
        }












    }

}
